In nt/gnulib.mk create <byteswap.h> from <byteswap.in.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Oct 2013 14:27:11 +0000 (16:27 +0200)
committermartin rudalics <rudalics@gmx.at>
Fri, 4 Oct 2013 14:27:11 +0000 (16:27 +0200)
* gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.

.bzrignore
nt/ChangeLog
nt/gnulib.mk

index cd64f3ff0aedc7daf8312c867158c3a891305060..78ee639e64ea085bc671de75352f72a815b9a3ee 100644 (file)
@@ -102,6 +102,7 @@ lib/Makefile.in
 lib/deps
 lib/alloca.h
 lib/arg-nonnull.h
+lib/byteswap.h
 lib/c++defs.h
 lib/dirent.h
 lib/errno.h
index 16252c2da466389569b982046a6c53c6234cd6d9..21c94cc2d1c509a6ea28caadefcf55184d24aee0 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.
+
 2013-09-20  Eli Zaretskii  <eliz@gnu.org>
 
        * mingw-cfg.site (gl_cv_sys_struct_timeval_tv_sec): Set to "yes"
index df27dcf610c9254fde4d9e16ddbf297de9327a99..ff46e9f09a6fe898f6d7dbf22192b03af3f0df1a 100644 (file)
@@ -78,6 +78,29 @@ EXTRA_DIST += alloca.in.h
 
 ## end   gnulib module alloca-opt
 
+## begin gnulib module byteswap
+
+BUILT_SOURCES += $(BYTESWAP_H)
+
+# We need the following in order to create <byteswap.h> when the system
+# doesn't have one.
+if GL_GENERATE_BYTESWAP_H
+byteswap.h: byteswap.in.h $(top_builddir)/config.status
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/byteswap.in.h; \
+       } > $@-t && \
+       mv -f $@-t $@
+else
+byteswap.h: $(top_builddir)/config.status
+       rm -f $@
+endif
+MOSTLYCLEANFILES += byteswap.h byteswap.h-t
+
+EXTRA_DIST += byteswap.in.h
+
+## end   gnulib module byteswap
+
 ## begin gnulib module c-ctype
 
 libgnu_a_SOURCES += c-ctype.h c-ctype.c